@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>事故（事件）历史信息管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-md-3">
                                <#NameCon id="name" name="名称" />
                            </div>
                            <div class="col-lg-3 col-md-4">
                                <#SelectCon id="category" name="种类"  code="categoryCode"/>
                            </div>
                            <div class="col-lg-3 col-md-4">
                                <#SelectCon id="rankCode" name="级别"  code="rank"/>
                            </div>
                            <div class="col-lg-4 col-md-4">
                                <#TimeCon id="beginTime" name="开始时间" isTime="false"/>
                            </div>
                            <div class="col-lg-4 col-md-4">
                                <#TimeCon id="endTime" name="结束时间" isTime="false"/>
                            </div>
                            <div class="col-md-3">
                                <#button name="搜索" icon="fa-search" clickFun="AccidentHistory.search()"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="AccidentHistoryTableToolbar" role="group">
                            @if(shiro.hasPermission("/accidentHistory/add")){
                                <#button name="添加" icon="fa-plus" clickFun="AccidentHistory.openAddAccidentHistory()"/>
                            @}
                            @if(shiro.hasPermission("/accidentHistory/update")){
                                <#button name="修改" icon="fa-plus" clickFun="AccidentHistory.openAccidentHistoryDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/accidentHistory/delete")){
                                <#button name="删除" icon="fa-plus" clickFun="AccidentHistory.delete()" space="true"/>
                            @}
                            <#button name="同期事故提醒" icon="fa-plus" clickFun="AccidentHistory.openAccidentForecast()" space="true"/>
                        </div>
                        <#table id="AccidentHistoryTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/yjya/accidentHistory/accidentHistory.js"></script>
<script>
    laydate.render({
        elem: '#beginTime'
        ,type: 'datetime'
    });
    laydate.render({
        elem: '#endTime'
        ,type: 'datetime'
    });
</script>
@}
